Refactor/#66 chatbot api - #67
Closed
docodocod wants to merge 2 commits into
Closed
Conversation
Feat/#61 slot generator
- 취소/노쇼 예약 내역 조회 AI Tool 추가 - 주변 인기 맛집 추천 AI Tool 추가 (반경 3km, 인기순 정렬) - 예약 가능 시간대 조회 AI Tool 추가 - 챗봇 요청에 위치 좌표(latitude/longitude) 필드 추가 - 쿠폰 목록 API Cache-Control: no-store 추가 - 챗봇 대화 내역 조회 시 세션 없으면 빈 목록 반환으로 수정 - SecurityConfig ASYNC DispatcherType 설정 제거 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request significantly enhances the chatbot's capabilities by integrating location-based store searches, reservation management (viewing and canceling), and a new payment flow. Key technical changes include the introduction of conversation summarization for long histories, the use of ThreadLocal for pending payment info, and the addition of several AI-driven tools. Review feedback highlights critical performance improvements, such as resolving an N+1 query issue in the reservation service, addressing latency caused by synchronous AI summarization, and optimizing store lookups by moving filtering from memory to the database.
Comment on lines
+305
to
+309
| Map<Long, String> orderIdByReservationId = new HashMap<>(); | ||
| for (Long pendingId : pendingIds) { | ||
| paymentRepository.findByReservation_Id(pendingId) | ||
| .ifPresent(p -> orderIdByReservationId.put(pendingId, p.getOrderId())); | ||
| } |
Contributor
Comment on lines
+152
to
155
| String summary = chatClient.prompt() | ||
| .user("다음 대화를 핵심 정보(예약 정보, 사용자 선호 등)만 3문장 이내로 요약해줘:\n" + historyText) | ||
| .call() | ||
| .content(); |
Contributor
Comment on lines
+88
to
+91
| Store store = storeRepository.findAllByIsDeletedFalse().stream() | ||
| .filter(s -> s.getStoreName().equalsIgnoreCase(storeName)) | ||
| .findFirst() | ||
| .orElse(null); |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📢 기능 설명
챗봇 기능 확장 및 쿠폰 조회 버그 수정
필요시 실행결과 스크린샷 첨부
연결된 issue
연결된 issue를 자동을 닫기 위해 아래 {이슈넘버}를 입력해주세요.
close #{이슈넘버}
✅ 체크리스트